import request from '@/utils/request'

function url(u) {
  const prefix = '/a/meeting'
  return `${prefix}${u || ''}`
}

export function findMeeting(state, size, page) {
  return request({
    url: url(),
    method: 'get',
    params: { state, size, page }
  })
}

export function updateMeeting(meeting) {
  return request({
    url: url(),
    method: 'put',
    data: meeting
  })
}

export function autoArrange() {
  return request({
    url: '/meeting/auto',
    method: 'get'
  })
}
